Пример #1
0
    public void TigerAttack(TigerTemplateBoss tiger)
    {
        var newState = new TigerBossDamageState();

        newState.tigerToThrow = tiger;
        ChangeState(newState);
    }
Пример #2
0
    public void OpenCage(TigerBoss boss)
    {
        Debug.Log("TigerBossCage :: OpenCage() - cage was opened");
        TigerTemplateBoss tiger = Instantiate(tigerTemplate);

        tiger.gameObject.SetActive(true);
        tiger.Init(boss);
        tiger.transform.position = transform.position;
        Destroy(this.gameObject);
    }