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; }
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); }