Example #1
0
 void OnTriggerEnter(Collider other)
 {
     if (other.CompareTag("Player"))
     {
         combat = other.GetComponent <TurnBasedCombat>();
         inCombat();
     }
 }
    // Use this for initialization
    void Start()
    {
        S = this;
        currentState = CombatStates.NOTHING; //player is not in combat as soon as the game begins

        //main camera is turned on, combat camera is kept off
        cam1.enabled = true;
        cam2.enabled = false;
    }
Example #3
0
    // Use this for initialization
    void Start()
    {
        S            = this;
        currentState = CombatStates.NOTHING; //player is not in combat as soon as the game begins

        //main camera is turned on, combat camera is kept off
        cam1.enabled = true;
        cam2.enabled = false;
    }
    // Use this for initialization
    void Start () {
        // Start singleton pattern
        Instance = this;

        // Activate first menu.
        currentMenu = waiting;
        currentState = MenuState.WAITING;
        currentMenu.SetActive(true);
        characterName.text = "";

        combat = battleController.GetComponent<TurnBasedCombat>();
	}