示例#1
0
    /** singleton
     * public CameraMananger Instance { get; private set; }
     * public int Value;
     * //end
     *
     * //singleton
     * private void Awake()
     * {
     *  if (Instance == null)
     *  {
     *      Instance = this;
     *      DontDestroyOnLoad(gameObject);
     *  }
     *  else
     *  {
     *      Destroy(gameObject);
     *  }
     * }
     *
     * //end*/

    private void Start()
    {
        canvasText.SetActive(true);
        gameOverText.SetActive(false);
        mananger = GameObject.Find("Mananger").GetComponent <Mananger>();
        ShowFirstPersonView();
    }
 // Use this for initialization
 private void Start()
 {
     pos = transform.position.y;
     if (bulletGO == null)
     {
         contador = GameObject.Find("Main Camera").GetComponent <Mananger>();
         enabled  = false;
     }
 }
示例#3
0
    // Use this for initialization
    void Start()
    {
        mananger = GameObject.Find("Mananger").GetComponent <Mananger>();
        bullets  = new List <GameObject>();
        for (int i = 0; i < PooledAmount; i++)
        {
            GameObject obj = Instantiate(bullet);
            obj.SetActive(false);
            bullets.Add(obj);

            ;
        }
    }
    void Awake()
    {
        //singleton
        if (Instance == null)
        {
            Instance = this;
            DontDestroyOnLoad(gameObject);
        }
        else
        {
            Destroy(gameObject);
        }
        turnoTeam   = false;
        turnoPlayer = 0;

        Turneador();
    }
 // Use this for initialization
 void Start()
 {
     mananger = GameObject.Find("Main Camera").GetComponent <Mananger>();
     UpdateSemillas();
 }
示例#6
0
 // Use this for initialization
 void Start()
 {
     t = 0f;
     manangerScript = FindObjectOfType <Mananger>();
 }
示例#7
0
 // Use this for initialization
 protected virtual void Awake()
 {
     Muerta   = false;
     vida     = 3;
     mananger = GameObject.Find("Mananger").GetComponent <Mananger>();
 }
示例#8
0
 // Use this for initialization
 void Awake()
 {
     mananger = GameObject.Find("Camera").GetComponent <Mananger>();
     colorKey = gameObject.GetComponent <Renderer>();
     colorKey.material.SetColor("_Color", Color.red);
 }