Пример #1
0
    // Use this for initialization
    public override void Start()
    {
        base.Start();
        state = ArcherState.attacking;
        characterType = CharacterConstants.CharacterType.enemy;

        //set our gnoll's abilities
        abilityOne = new MoveScript(this);
        abilityTwo = new RockThrowScript(this);
    }
Пример #2
0
    //private float _animatorCutTime = 0.143f;

    private void Awake()
    {
        _rockThrowScript        = GameObject.Find("MainCharacter").GetComponent <RockThrowScript>();
        _characterControlScript = GameObject.Find("MainCharacter").GetComponent <CharacterControlScript>();
    }