Example #1
0
        public HealthGlobeInteractiveObject(HealthGlobeInteractiveObjectDefinitionStruct healthGlobeInteractiveObjectDefinitionStruct,
                                            IInteractiveGameObject interactiveGameObject, BeziersControlPointsBuildInput BeziersControlPointsBuildInput, bool IsUpdatedInMainManager = true)
        {
            this.HealthGlobeInteractiveObjectDefinitionStruct = healthGlobeInteractiveObjectDefinitionStruct;
            this.interactiveObjectTag = new InteractiveObjectTag()
            {
                IsGivingHealth = true
            };

            interactiveGameObject.CreateLogicCollider(healthGlobeInteractiveObjectDefinitionStruct.InteractiveObjectSphereLogicColliderDefinitionStruct);

            base.BaseInit(interactiveGameObject, IsUpdatedInMainManager);

            this.SpawnBeziersMovementSystem = new BeziersMovementSystem(BeziersControlPointsBuildInput, this.OnHealthGlobeSpawnBeziersMovementEnded);
            this.SpawnBeziersMovementSystem.StartBeziersMovement();
        }
Example #2
0
 public void SetupBeforeObjectCreation(float RecoveredHealth, BeziersControlPointsBuildInput BeziersControlPointsBuildInput)
 {
     this.RuntimeHealthGlobeInteractiveObjectDefinition = this.HealthGlobeInteractiveObjectDefinition;
     this.RuntimeHealthGlobeInteractiveObjectDefinition.SetRecoveredHealthValue(RecoveredHealth);
     this.BeziersControlPointsBuildInput = BeziersControlPointsBuildInput;
 }