#pragma warning restore 0649 #endregion #region Base - Override public override void OnCreateBehaviour(BaseActorController hBaseController) { if (DSC_Pooling.TryGetPooling(out JumpCacheData hOutData)) { hBaseController.AddBehaviourData(hOutData); } else { hBaseController.AddBehaviourData(new JumpCacheData { m_actJump = OnJump }); } }
private void Awake() { m_hActorController = GetComponent <DSC_ActorController>(); m_hActorController.AddBehaviourData(new ActorMonoData <Actor_AmmoController> { m_hMono = this }); }
#pragma warning restore 0649 #endregion #region Base - Override public override void OnCreateBehaviour(BaseActorController hBaseController) { base.OnCreateBehaviour(hBaseController); if (DSC_Pooling.TryGetPooling(out GravityIncreaseButtonCacheData hOutCache)) { hBaseController.AddBehaviourData(hOutCache); } else { hBaseController.AddBehaviourData(new GravityIncreaseButtonCacheData { m_actButtonDown = OnButtonDown, m_actButtonUp = OnButtonUp }); } }