private void Start()
 {
     if (GameObject.Find("_GameController") != null)
     {
         GC = GameObject.Find("_GameController").GetComponent <S_GameController>();
     }
     else
     {
         Debug.Log("No Game controller!");
     }
 }
Beispiel #2
0
 private void Start()
 {
     if (GameObject.Find("_GameController") != null)
     {
         ref_GameController = GameObject.Find("_GameController").GetComponent <S_GameController>();
         ref_GameController.SetLevelSpawner(this);
     }
     else
     {
         Debug.Log("Level spawner : Did not find gamecontroller");
     }
 }
Beispiel #3
0
 public void Btn_DebugJamesScene()
 {
     m_StartDebugJames.Invoke();
     if (GameObject.Find("_GameController") != null)
     {
         ref_GameController = GameObject.Find("_GameController").GetComponent <S_GameController>();
         ref_GameController.GameData.GameMode = GameModes.DebugJames;
     }
     else
     {
         Debug.Log("GameMode setter : Did not find gamecontroller");
     }
     CloseScene();
 }
    // Start is called before the first frame update
    void Start()
    {
        if (GameObject.Find("_GameController") != null)
        {
            ref_GameController  = GameObject.Find("_GameController").GetComponent <S_GameController>();
            CharacterController = ref_GameController.CharacterController;
            ref_GameController.SetHUDScript(this);
        }
        else
        {
            Debug.Log("Level spawner : Did not find gamecontroller");
        }

        TooltipsSent = new List <Tooltips>();
    }
Beispiel #5
0
    public virtual void Start()
    {
        if (GameObject.Find("_GameController") != null)
        {
            ref_GameController = GameObject.Find("_GameController").GetComponent <S_GameController>();
        }
        else
        {
            Debug.Log("No Game controller!");
        }

        foreach (Collider c in GetComponentsInChildren <Collider>())
        {
            c.enabled = false;
        }
    }
Beispiel #6
0
    public virtual void Start()
    {
        if (GameObject.Find("_GameController") != null)
        {
            ref_GameController = GameObject.Find("_GameController").GetComponent <S_GameController>();
        }
        else
        {
            Debug.Log("No Game controller!");
        }

        if (ref_GameController.CharacterController.Interactor.MachineFound != null)
        {
            ref_Machine = ref_GameController.CharacterController.Interactor.MachineFound;
        }
    }
Beispiel #7
0
    void Start()
    {
        Animate          = gameObject.GetComponentInChildren <Animator>();
        rb               = gameObject.GetComponent <Rigidbody>();
        GC               = GetComponent <S_GravityController>();
        CharacterUpgrade = GetComponent <S_CharacterUpgrade>();

        if (GameObject.Find("_GameController") != null)
        {
            ref_GameController = GameObject.Find("_GameController").GetComponent <S_GameController>();
            HUDController      = ref_GameController.m_HUDController;
        }
        else
        {
            Debug.Log("Level spawner : Did not find gamecontroller");
        }

        Cursor.lockState = CursorLockMode.Locked;
        Cursor.visible   = false;

        RemainingJetpack    = m_DefaultJetpackTime;
        RemainingOvercharge = m_OverchargeJetpackTime;
    }
Beispiel #8
0
 private void Start()
 {
     ref_GameController = GameObject.Find("_GameController").GetComponent <S_GameController>();
 }