public override void UseIncantation(Force.ForceType _force) { if (spawnInstantly) { obj = (Rigidbody2D)Instantiate(gameObjectToSpawn, pSpawnPosition, Quaternion.identity) as Rigidbody2D; } pForceType = _force; }
public override void UseIncantation(Force.ForceType _force) { if (pSpawnInstantly) { obj = (Rigidbody2D)Instantiate(pGameObjectToSpawn, pGameObjectSpawnLocation.transform.position, Quaternion.identity) as Rigidbody2D; } pForceType = _force; }
// Use this for initialization public virtual void Start() { if (force == null) { forceType = Force.ForceType.NONE; } else { forceType = force.ItemForce; } }
public override void ReleaseIncantation(Force.ForceType _force) { throw new System.NotImplementedException(); }
public abstract void UseIncantation(Force.ForceType _force); //Used Instantly public abstract void ReleaseIncantation(Force.ForceType _force); //Used when the button is released.
public abstract void ActivateSpell(); //Used after a period of time. public abstract void UseIncantation(Force.ForceType _force); //Used Instantly
public override void ReleaseIncantation(Force.ForceType _force) { }
public void ReleaseIncantation(Force.ForceType _force) { pressed = true; }