예제 #1
0
	public override void Reset()
	{
		if( Owner )
		{
			pause = this.Owner.GetComponent< PauseController >() ; 
		}
	}
예제 #2
0
 public override void Reset()
 {
     if (Owner)
     {
         pause = this.Owner.GetComponent <PauseController>();
     }
 }
예제 #3
0
	public override string ErrorCheck ()
	{
		if( pause == null && Owner )
		{
			pause = Owner.GetComponent< PauseController >() ; 
		}
		
		if( pause == null )
		{
			return "PauseController not defined" ; 
		}
		
		if( pauseControllerDescriptionName != "Name: " + pause.pauseName )
		{
			pauseControllerDescriptionName = "Name: " + pause.pauseName ;  
		}
		
		return null ; 
	}
예제 #4
0
    public override string ErrorCheck()
    {
        if (pause == null && Owner)
        {
            pause = Owner.GetComponent <PauseController>();
        }

        if (pause == null)
        {
            return("PauseController not defined");
        }

        if (pauseControllerDescriptionName != "Name: " + pause.pauseName)
        {
            pauseControllerDescriptionName = "Name: " + pause.pauseName;
        }

        return(null);
    }