Пример #1
0
    private void Update()
    {
#if UNITY_EDITOR
        if (Input.GetKeyDown(KeyCode.Mouse1))
        {
            characterMove.MoveToTarget();
        }
        if (Input.GetKeyDown(KeyCode.Alpha1))
        {
            characterAttacker.AttackOn();
        }
        if (Input.GetKeyDown(KeyCode.Alpha2))
        {
            characterAttacker.AttackOff();
        }
#else
        if (Input.GetKeyDown(KeyCode.Mouse0))
        {
            characterMove.MoveToTarget();
        }
#endif
    }