Ejemplo n.º 1
0
 protected void Start()
 {
     c2d        = GetComponent <Controller2D>();
     audsrc     = GetComponent <AudioSource>();
     initialLoc = transform.position;
     animor     = GetComponentInChildren <Animator>();
     ReloadMaster.AddToMaster(this);
 }
Ejemplo n.º 2
0
 // Use this for initialization
 new void Start()
 {
     if (spawnPrefab == null)
     {
         Warn("Prefab not set");
     }
     sprend     = GetComponent <SpriteRenderer>();
     initialLoc = transform.position;
     ReloadMaster.AddToMaster(this);
     audsrc = GetComponent <AudioSource>();
 }
Ejemplo n.º 3
0
 void Start()
 {
     ps           = null;
     player       = null;
     velocity     = Vector3.zero;
     c2d          = GetComponent <Controller2D>();
     partSys      = GetComponent <ParticleSystem>();
     audsrc       = GetComponent <AudioSource>();
     defaultColor = transform.GetChild(0).GetComponent <SpriteRenderer>().material.color;
     initialLoc   = transform.position;
     ReloadMaster.AddToMaster(this);
 }
Ejemplo n.º 4
0
 // Use this for initialization of singleton class
 void Awake()
 {
     instance = this;
 }
Ejemplo n.º 5
0
 public void SpawnPlayer()
 {
     gameObject.GetComponent <SplitterMasterScript>().resetSplitters();
     player.GetComponent <PlayerScript>().SpawnPlayer(pos);
     ReloadMaster.ReloadObjects();
 }