void Start() { chatText = GameObject.Find("Chat text").GetComponent<Text>(); chatInput = GameObject.Find("Chat input").GetComponent<InputField>(); playerInput = GetComponent<PlayerInput>(); }
public GroundedDownwardAttackState(PlayerController playerController, PlayerInput playerInput, PlayerData playerData, string animation) : base(playerController, playerInput, playerData, animation) { pData.AnimationLength.TryGetValue(animation, out animationLength); sound = Resources.Load <AudioClip>(@"Sounds/mage_knight_sword"); }