private void Start()
    {
        rigidBody       = this.GetComponent <Rigidbody>();
        moveableManager = this.GetComponent <MoveableManager>();

        onPlayerMove += InvokePosition;
    }
Exemple #2
0
 private void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
     else
     {
         Destroy(this);
     }
 }