Esempio n. 1
0
 void Awake()
 {
     feet = GetComponentInChildren<Feet>();
     legs = GetComponentsInChildren<Leg>();
     rbody = GetComponent<Rigidbody2D>();
     face = GetComponentInChildren<Face>();
     hat = GetComponentInChildren<Hat>();
     _audio = GetComponent<AudioClipPlayer>();
     _collider = GetComponent<CapsuleCollider2D>();
     squishHitbox = GetComponentInChildren<SquishHitbox>();
     achievementMgr = GetComponent<PlayerAchievementMgr>();
     _transform = transform;
 }
Esempio n. 2
0
        static bool HandleResetAchievementsCommand(StringArguments args, CommandHandler handler)
        {
            Player     target;
            ObjectGuid targetGuid;

            if (!handler.extractPlayerTarget(args, out target, out targetGuid))
            {
                return(false);
            }

            if (target)
            {
                target.ResetAchievements();
            }
            else
            {
                PlayerAchievementMgr.DeleteFromDB(targetGuid);
            }

            return(true);
        }