Exemplo n.º 1
0
 void Awake()
 {
     if (me == null)
     {
         me = this;
     }
     else if (me != this)
     {
         Destroy(gameObject);
     }
 }
Exemplo n.º 2
0
 void Start()
 {
     mm = MainPlayer_Single.me;
     rb = mm.GetComponent <Rigidbody>();
 }