Beispiel #1
0
    void Start()
    {
        audioManager = AudioControllerScript.instance;
        if (audioManager == null)
        {
            Debug.LogError("someting went horribly wrong (audioController is not found)");
        }

        currentState = TurnState.PROCESSING;
        BSM          = GameObject.Find("BattleManager").GetComponent <BattleStateMachine>();
        BSM.CreateBossPanel(EnemyStats.curHP);
        if (BSM.Enemy.GetComponent <Animation> () != null)
        {
            anim = BSM.Enemy.GetComponent <Animation> ();
        }
        else
        {
            animator = BSM.Enemy.GetComponent <Animator> ();
        }
        startposition = transform.position;
        currentState  = TurnState.WAITING;
    }