Exemple #1
0
        private void OnDisable()
        {
            ForceManagerSystem forceManager = EventsManager.GetIstance <ForceManagerSystem>();

            if (forceManager)
            {
                forceManager.DisableForce(gameObject.GetInstanceID());
            }
        }
Exemple #2
0
        private void OnDisable()
        {
            ForceManagerSystem forceManager = SingletonPool.Get <ForceManagerSystem>();

            if (forceManager)
            {
                forceManager.DisableForce(gameObject.GetInstanceID());
            }
        }