Ejemplo n.º 1
0
        void OnEnable()
        {
            HeroKitObject targetObject = this.GetComponent <HeroKitObject>();

            settings = targetObject.GetHeroComponent <HeroSettings2D>("HeroSettings2D", true);
            settings.rigidBody.gravityScale = 0;
        }
Ejemplo n.º 2
0
        private void Awake()
        {
            HeroKitObject targetObject = this.GetComponent <HeroKitObject>();

            settings = targetObject.GetHeroComponent <HeroSettings2D>("HeroSettings2D", true);
        }
Ejemplo n.º 3
0
        void OnEnable()
        {
            HeroKitObject targetObject = this.GetComponent <HeroKitObject>();

            settings = targetObject.GetHeroComponent <HeroSettings2D>("HeroSettings2D", true);
        }