コード例 #1
0
 // Use this for initialization
 void Start()
 {
     cm  = FindObjectOfType <CrystalManager>();
     b1s = FindObjectOfType <Button1Script>();
     b2s = FindObjectOfType <Button2Script>();
     b3s = FindObjectOfType <Button3Script>();
 }
コード例 #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";
 }
コード例 #3
0
ファイル: ShopHP.cs プロジェクト: JelmerBatenburg/Periode2
 // 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";
 }
コード例 #4
0
ファイル: Restart.cs プロジェクト: JelmerBatenburg/Periode2
 // 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>();
 }
コード例 #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;
 }
コード例 #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();
    }
コード例 #7
0
ファイル: CrystalManager.cs プロジェクト: albmarvil/DFT
 /// <summary>
 /// This is like the Release but done by the MonoBehaviour
 /// </summary>
 private void OnDestroy()
 {
     if (m_Instance == this)
         m_Instance = null;
 }
コード例 #8
0
ファイル: CrystalManager.cs プロジェクト: albmarvil/DFT
 /// <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;
     }
 }
コード例 #9
0
 // Use this for initialization
 void Start()
 {
     cm = FindObjectOfType <CrystalManager>();
 }
コード例 #10
0
 private void Awake()
 {
     Instance = this;
 }
コード例 #11
0
 // Use this for initialization
 void Start()
 {
     cm  = FindObjectOfType <CrystalManager>();
     bps = FindObjectOfType <ButtonPuzzleScript>();
 }