void Start() { rb = GetComponentInChildren <Rigidbody>(); TP_Camera.UseExistingOrCreateNewMainCamera(); carryingController = GetComponent <CarryingController>(); myPhotonView = GetComponent <PhotonView> (); if (name == "Em") { emAbility = GetComponent <EmAbilityBehavior>(); } }
void Start() { lmask = ~LayerMask.GetMask("Ignore Raycast", "DialogTrigger", "NoPlayersAllowedButCarraybleOK"); BoxCollider collider = GetComponent <BoxCollider>(); minCarryingDistance = collider.bounds.extents.z + collider.center.z + collider.bounds.extents.x; if (name == "Em") { emAbility = GetComponent <EmAbilityBehavior>(); } }