예제 #1
0
    void Start()
    {
        HumanoidSetUp setUp = this.GetComponentInParent <HumanoidSetUp>();

        slaveController = setUp.slaveController;
        layerMask       = setUp.dontLooseStrengthLayerMask;
    }
예제 #2
0
 public override void OnStartLocalPlayer()
 {
     if (!isServer)
     {
         GameSettings.PLAYSTATE = GameSettings.PLAY_STATE.PLAYER;
         slaveCont = gameObject.GetComponent <SlaveController>();
         slaveCont.ChangeView();
         Canvas.SetActive(true);
     }
 }
예제 #3
0
    // Awake() is called before all Start() methods
    void Awake()
    {
        if (masterRoot == null)
        {
            Debug.LogError("masterRoot not assigned.");
        }
        if (slaveRoot == null)
        {
            Debug.LogError("slaveRoot not assigned.");
        }
        if (characterCamera == null)
        {
            Debug.LogError("characterCamera not assigned.");
        }

        masterController = this.GetComponentInChildren <MasterController>();
        if (masterController == null)
        {
            Debug.LogError("MasterControler not found.");
        }

        slaveController = this.GetComponentInChildren <SlaveController>();
        if (slaveController == null)
        {
            Debug.LogError("SlaveController not found.");
        }

        animFollow = this.GetComponentInChildren <AnimationFollowing>();
        if (animFollow == null)
        {
            Debug.LogError("AnimationFollowing not found.");
        }

        anim = this.GetComponentInChildren <Animator>();
        if (anim == null)
        {
            Debug.LogError("Animator not found.");
        }
    }
예제 #4
0
 public TestRunnerBase(SlaveContext context)
 {
     _context    = context;
     _controller = context.Controller;
 }
예제 #5
0
 public Slave()
 {
     InitializeComponent();
     slaveController = new SlaveController();
 }
예제 #6
0
 public SequentialTestRunner(SlaveController controller, SlaveContext context) : base(context)
 {
 }