Factorisation des Usable

This commit is contained in:
Antoine H 2020-12-10 11:57:23 +01:00
parent 5b787c7da6
commit 4aa2aef787
7 changed files with 34 additions and 31 deletions

View file

@ -59,8 +59,8 @@ public class Workshop : MonoBehaviour, IUsable
{
if(gameObject.layer != LayerMask.NameToLayer("Interactions"))
Debug.LogWarning(gameObject.name+" layer should be set to 'Interactions' to work properly");
if(gameObject.tag != "Workshop")
Debug.LogWarning(gameObject.name+" tag should be set to 'Workshop' to work properly");
if(gameObject.tag != "Usable")
Debug.LogWarning(gameObject.name+" tag should be set to 'Usable' to work properly");
}
// Update is called once per frame