public override void Awake() { destructible = GetComponent <Destructible>(); destructible.onDeath += () => { StartCoroutine(shrinkAndDie()); }; velocityApplier = GetComponent <VelocityApplier>(); _viewpoint.hud.AddHudComponent(createHudComponent()); }
public void SetUp() { containingObject = new GameObject(); subject = containingObject.AddComponent <VelocityApplier>(); }
public override void Awake() { velocityApplier = GetComponent <VelocityApplier>(); }