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

@ -53,8 +53,8 @@ public class Client_controller : MonoBehaviour, IUsable
{
if(gameObject.layer != LayerMask.NameToLayer("Interactions"))
Debug.LogWarning(gameObject.name+" layer should be set to 'Interactions' to work properly");
if(gameObject.tag != "Client")
Debug.LogWarning(gameObject.name+" tag should be set to 'Client' 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