void stopAction() { transform.localPosition = moveTo; moving = false; if (shakeCamera) { CameraFollow2D.stopShake(); } if (switchCameraTo != null) { CameraFollow2D.changeTarget(); } }
//iWorldAction public override void doAction() { if (!moving && moveCount > 0) { Debug.Log("start"); moving = true; moveCount--; StartCoroutine(mover()); if (switchCameraTo != null) { CameraFollow2D.changeTarget(switchCameraTo); } } }