示例#1
0
    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);
    }
示例#2
0
 void Start()
 {
     this.fist = GameObject.Find("Fist").GetComponent <FistState> ();
 }