public override bool Equals(object obj) { if (obj == null) { return(false); } if (ReferenceEquals(this, obj)) { return(true); } if (obj.GetType() != typeof(FistState)) { return(false); } FistState other = (FistState)obj; return(firingFramesLeft == other.firingFramesLeft); }
void Start() { this.fist = GameObject.Find("Fist").GetComponent <FistState> (); }