void Start()
    {
        ps = this.GetComponent <PoofScript>();
        ms = this.GetComponent <MovementScript>();

        //mostRecent = Direction.Stay;
        likes = new ArrayList();
    }
Example #2
0
    void Start()
    {
        ps = this.GetComponent<PoofScript>();
        ms = this.GetComponent<MovementScript>();

        //mostRecent = Direction.Stay;
        likes = new ArrayList();
    }
Example #3
0
    /**
     * 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);
    }
Example #4
0
 public void initializePoof()
 {
     ps = this.GetComponent<PoofScript>();
     pmp = this.GetComponent<PassiveMoverPoofs>();
 }
 public void initializePoof()
 {
     ps  = this.GetComponent <PoofScript>();
     pmp = this.GetComponent <PassiveMoverPoofs>();
 }