Example #1
0
 public void SwapMovement(CharacterRotate newRot, CharacterTranslate newTrans, List <CharacterControlExtraBase> extras = null)
 {
     StopAll();
     rotate        = newRot;
     translate     = newTrans;
     extraControls = extras;
     Init();
 }
Example #2
0
 public override void Initialize()
 {
     //any init stuff needed
     initRotation   = transform.rotation.eulerAngles;
     _waitforbutton = new WaitUntil(CheckInput);
     currWeapon     = true;
     WeaponObj.SetActive(true);
     attack         = Attack();
     originalRotate = playermove.rotate;
     StartCoroutine(attack);
 }