Пример #1
0
        static void Prefix(ES_Hibernate __instance)
        {
            var exploderBase = __instance.m_enemyAgent.GetComponent <ExploderBase>();

            if (exploderBase != null)
            {
                __instance.m_detectingColorVec = exploderBase.glowColor;
                __instance.m_heartbeatColorVec = exploderBase.glowColor;
            }
        }
Пример #2
0
        //This is f*****g awful
        static void Prefix(ES_Hibernate __instance)
        {
            var customAbility = __instance.m_enemyAgent.GetComponent <CustomAbility>();

            if (customAbility != null)
            {
                __instance.m_detectingColorVec = customAbility.GlowColor;
                __instance.m_heartbeatColorVec = customAbility.GlowColor;
            }
        }