コード例 #1
0
        public override void Awake()
        {
            destructible          = GetComponent <Destructible>();
            destructible.onDeath += () => { StartCoroutine(shrinkAndDie()); };

            velocityApplier = GetComponent <VelocityApplier>();

            _viewpoint.hud.AddHudComponent(createHudComponent());
        }
コード例 #2
0
 public void SetUp()
 {
     containingObject = new GameObject();
     subject          = containingObject.AddComponent <VelocityApplier>();
 }
コード例 #3
0
 public override void Awake()
 {
     velocityApplier = GetComponent <VelocityApplier>();
 }