void Rpc_DoShellInteraction_GetOut(GameObject _shell) { //Debug.Log ("Got The Rpc -- Out"); Shell_Sc Shell_script = _shell.GetComponent <Shell_Sc>(); gameObject.GetComponent <ColorMixer> ().in_shell = false; Shell_script.occupied = false; Shell_script.rider = null; ChangePhysicsLayer(_shell, false); SetAlpha(_shell, 1f); }
void Rpc_DoShellInteraction_GetIn(GameObject _shell, Vector3 _shell_pos) { //Debug.Log ("Got The Rpc -- In"); Shell_Sc Shell_script = _shell.GetComponent <Shell_Sc>(); Shell_script.occupied = true; Shell_script.rider = gameObject; gameObject.GetComponent <ColorMixer> ().in_shell = true; Bunch_Up(gameObject, _shell_pos); ChangePhysicsLayer(_shell, true); SetAlpha(_shell, 0.2f); }