public void Start() { WorldGlobal.Narrator.player = this; characterValues = new myMoveVars(); groundNormal = Vector3.zero; myStates.Add("walk", typeof(Walk)); myStates.Add("run", typeof(Run)); myStates.Add("hax", typeof(Hax)); myStates.Add("RedPaint", typeof(RedPaint)); myStates.Add("BluePaint", typeof(BluePaint)); myStates.Add("GravPaint", typeof(GravPaint)); SetBehavior(""); //myStates.Add("run", typeof(Run)); InputManager.Init(); myController = GetComponent <CharacterController>(); gameObject.SendMessage("SetCharValues", characterValues); WorldGlobal.Narrator.setPlayerPosition("BlackRoomSpawn"); }
void SetCharValues(myMoveVars vvkafjshfs) { characterValues = vvkafjshfs; }