public void InitializeCharacter(CharacterIdentity ci) { characterIdentity = ci; trans = model.GetComponent <Transform>(); rigid = GetComponent <Rigid>(); mState = new IdleState(); mDelayState = new IdleDelayState(); gameSystemState = SystemOrder.NOTHING; inputOrder = InputOrder.stand; attackOrder = -1; walkDirection = new Vector3(0, 0, 0); sightRotation = new Vector3(0, 0, 0); posture = new Posture(this); walkPhase = 0; attackPhase = 0; holdingItemIndex = -1; if (characterIdentity.isPlayer) { GetComponent <Basic>().mManager.allManager.SetCamera(gameObject); posture.BecomeInvisible(); targetCharacter = null; } else { targetCharacter = GetComponent <Basic>().mManager.allManager.player; } }