private void Start() { rigidBody = this.GetComponent <Rigidbody>(); moveableManager = this.GetComponent <MoveableManager>(); onPlayerMove += InvokePosition; }
private void Awake() { if (Instance == null) { Instance = this; } else { Destroy(this); } }