private static void CheckGenericSkillStateMachine(AssetCheckArgs args)
 {
     if (((GenericSkill)args.asset).stateMachine.customName == string.Empty)
     {
         args.LogError("Unnamed state machine.", ((GenericSkill)args.asset).gameObject);
     }
 }
Ejemplo n.º 2
0
        private static void AddMinionOwnershipComponent(AssetCheckArgs args)
        {
            CharacterMaster characterMaster = args.asset as CharacterMaster;

            if (!characterMaster.GetComponent <MinionOwnership>())
            {
                characterMaster.gameObject.AddComponent <MinionOwnership>();
                args.UpdatePrefab();
            }
        }
        private static void CheckParticleSystemRandomColor(AssetCheckArgs args)
        {
            ParticleSystemRandomColor particleSystemRandomColor = (ParticleSystemRandomColor)args.asset;

            for (int i = 0; i < particleSystemRandomColor.particleSystems.Length; i++)
            {
                if (!particleSystemRandomColor.particleSystems[i])
                {
                    args.LogErrorFormat(args.asset, "Null particle system in slot {0}", new object[]
                    {
                        i
                    });
                }
            }
        }