// Use this for initialization
    void Start()
    {
        GameObject managerObj = GameObject.Find("Manager");
        manager = managerObj.GetComponent<ManagerSystem>();
        dijSys = managerObj.GetComponent<DijkstraSystem>();
        assist = managerObj.GetComponent<PlayerAssistanceSystem>();
        abilSys = managerObj.GetComponent<AbilitySystem>();

        selectedCell = selectedMovementCell =  null;
        changedSelectedCell = changedSelectedMovementCell = false;

        rotationScript = (CameraRotationScript)FindObjectOfType (typeof(CameraRotationScript));
    }
    // Use this for initialization
    void Start()
    {
        rounds = 0;
        isPlayer1 = true;
        player1 = GameObject.Find("Player1");
        player2 = GameObject.Find("Player2");

        player2.GetComponent<inputSystem>().enabled = false;
        cam = GameObject.Find("Main Camera").GetComponent<CameraRotationScript>();
        shootingSys = (ShootingSystem)this.gameObject.GetComponent(typeof(ShootingSystem));
        dijkstra = FindObjectOfType<DijkstraSystem>();

        plane = GameObject.Find("Plane");
    }
Exemple #3
0
 private void Start()
 {
     _cameraRotationScript = FindObjectOfType <CameraRotationScript>();
 }
 // Use this for initialization
 void Start()
 {
     cam = this.gameObject.GetComponent<Camera>();
        // constantPos = this.transform.position;
     constantRot = this.transform.rotation;
     rotationScript = (CameraRotationScript)FindObjectOfType (typeof(CameraRotationScript));
 }