void Start() { ps = this.GetComponent <PoofScript>(); ms = this.GetComponent <MovementScript>(); //mostRecent = Direction.Stay; likes = new ArrayList(); }
void Start() { ps = this.GetComponent<PoofScript>(); ms = this.GetComponent<MovementScript>(); //mostRecent = Direction.Stay; likes = new ArrayList(); }
/** * Allows the caller to spawn a poof */ public void SpawnPoof(GameObject prefab, Tuple spawnPoint, List <GameObject> active) { Vector3 position = GetSpawnVector(spawnPoint); position.z = position.z - 1; GameObject go = Instantiate(prefab, position, Quaternion.identity) as GameObject; active.Add(go); PoofScript ps = go.GetComponent <PoofScript>(); ps.onTile = TileScript.grid.GetTile(spawnPoint); go.GetComponent <MovementScript>().initializePoof(); go.transform.SetParent(nest.transform); }
public void initializePoof() { ps = this.GetComponent<PoofScript>(); pmp = this.GetComponent<PassiveMoverPoofs>(); }
public void initializePoof() { ps = this.GetComponent <PoofScript>(); pmp = this.GetComponent <PassiveMoverPoofs>(); }