protected void Start() { c2d = GetComponent <Controller2D>(); audsrc = GetComponent <AudioSource>(); initialLoc = transform.position; animor = GetComponentInChildren <Animator>(); ReloadMaster.AddToMaster(this); }
// 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>(); }
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); }