// Use this for initialization void Start() { _mapController = GameObject.Find(PlayerInfo.PLAYER_AVATAR_ID).GetComponent <MapMovementController> (); _button = gameObject.GetComponent <Button> (); _button.onClick.AddListener(() => _mapController.EngageNode(gameObject)); }
// Start is called before the first frame update void Start() { moveController = GetComponent <MapMovementController>(); moveController.moveActionCallback += OnMove; moveController.tileActionCallback += OnTile; animator = GetComponent <Animator>(); animator.speed = 0; }
void Start() { moveController = GetComponent <MapMovementController>(); // Start and stop animation when player begins and stops moving moveController.moveActionCallback += OnMove; moveController.tileActionCallback += OnTile; animator = GetComponent <Animator>(); animator.speed = 0; }
// Start is called before the first frame update void Start() { movementController = GetComponent <MapMovementController>(); }