Exemple #1
0
    /*RUNTIME*/

    // Use this for initialization
    void Start()
    {
        STATE  = GameObject.Find("BattleScripts").GetComponent <Battlemanager> ();
        CAMERA = GameObject.Find("BattleCam").GetComponent <CameraParallax> ();

        currentAlly = allyOne;
        allyOne.selectchar();
    }
Exemple #2
0
    /*RUNTIME*/

    void Awake()
    {
        closeMenu();
        coroutineOneRunning = false;
        coroutineTwoRunning = false;
        menuOpen            = false;

        NAVCONTROL = GameObject.Find("BattleScripts").GetComponent <CharNav> ();
        CAMERA     = GameObject.Find("BattleCam").GetComponent <CameraParallax> ();

        if (CAMERA == null)
        {
            Debug.Log("Camera Not Found");
        }
    }