Factorisation des Usable
This commit is contained in:
parent
5b787c7da6
commit
4aa2aef787
7 changed files with 34 additions and 31 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue