void Start() { HumanoidSetUp setUp = this.GetComponentInParent <HumanoidSetUp>(); slaveController = setUp.slaveController; layerMask = setUp.dontLooseStrengthLayerMask; }
public override void OnStartLocalPlayer() { if (!isServer) { GameSettings.PLAYSTATE = GameSettings.PLAY_STATE.PLAYER; slaveCont = gameObject.GetComponent <SlaveController>(); slaveCont.ChangeView(); Canvas.SetActive(true); } }
// 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."); } }
public TestRunnerBase(SlaveContext context) { _context = context; _controller = context.Controller; }
public Slave() { InitializeComponent(); slaveController = new SlaveController(); }
public SequentialTestRunner(SlaveController controller, SlaveContext context) : base(context) { }