Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     cm  = FindObjectOfType <CrystalManager>();
     b1s = FindObjectOfType <Button1Script>();
     b2s = FindObjectOfType <Button2Script>();
     b3s = FindObjectOfType <Button3Script>();
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     check          = GameObject.FindWithTag("WeaponManager").GetComponent <WeaponManager>();
     cashCheck      = GameObject.FindWithTag("CrystalManager").GetComponent <CrystalManager>();
     panelName.text = nameInput;
     price.text     = priceInput.ToString() + " Crystals";
 }
Exemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     health          = GameObject.FindWithTag("HealthManager").GetComponent <HealthManager>();
     check           = GameObject.FindWithTag("CrystalManager").GetComponent <CrystalManager>();
     namePanel.text  = "+ " + nameInput.ToString() + " HP";
     pricePanel.text = priceInput.ToString() + " Crystals";
 }
Exemplo n.º 4
0
 // Use this for initialization
 void Start()
 {
     hp       = GameObject.FindWithTag("HealthManager").GetComponent <HealthManager>();
     weapon   = GameObject.FindWithTag("WeaponManager").GetComponent <WeaponManager>();
     movement = GameObject.FindWithTag("Player").GetComponent <CharacterMovement>();
     spawn    = GameObject.FindWithTag("SpawnPoint").transform;
     start    = spawn.position;
     crystal  = GameObject.FindWithTag("CrystalManager").GetComponent <CrystalManager>();
 }
Exemplo n.º 5
0
 // Use this for initialization
 void Start()
 {
     cm             = FindObjectOfType <CrystalManager>();
     cw1            = FindObjectOfType <CrystalWhite1>();
     cw2            = FindObjectOfType <CrystalWhite2>();
     cw3            = FindObjectOfType <CrystalWhite3>();
     lms            = FindObjectOfType <LevelManagerScript>();
     timer          = 3f;
     endImg.color   = endImgColor;
     endImg.enabled = false;
 }
Exemplo n.º 6
0
    // Use this for initialization
    void Start()
    {
        camera = USearch.FindCurrentCamera();

        Malla     = (Malla)General.Create(Root.malla, container: Program.ClassContainer.transform);
        Poly      = new UPoly();
        subDivide = new SubDivider();
        Vertex    = new Vertexer();
        iniTerr   = new InitializerTerrain();

        iniTerr.Initializer(ref Vertices, ref mesh);
        iniTerr.InitializeMallaStats(Vertices, ref wholeMalla, ref nextStart, ref zLot);

        SubPolyr  = new SubPolyr();
        subMesh   = new SubMeshData();
        IsLoading = true;

        //bz is static and if a new game is started needs to clean up and start again
        CrystalManager1 = new CrystalManager();
    }
Exemplo n.º 7
0
 /// <summary>
 /// This is like the Release but done by the MonoBehaviour
 /// </summary>
 private void OnDestroy()
 {
     if (m_Instance == this)
         m_Instance = null;
 }
Exemplo n.º 8
0
 /// <summary>
 /// This is like the Init but done by the MonoBehaviour
 /// </summary>
 private void Awake()
 {
     if (m_Instance == null)
         m_Instance = this;
     else
     {
         Debug.LogError("Someone is trying to create various CrystalManager [" + name + "]");
         this.enabled = false;
     }
 }
Exemplo n.º 9
0
 // Use this for initialization
 void Start()
 {
     cm = FindObjectOfType <CrystalManager>();
 }
Exemplo n.º 10
0
 private void Awake()
 {
     Instance = this;
 }
Exemplo n.º 11
0
 // Use this for initialization
 void Start()
 {
     cm  = FindObjectOfType <CrystalManager>();
     bps = FindObjectOfType <ButtonPuzzleScript>();
 }