Exemplo n.º 1
0
    private void OnSceneGUI()
    {
        Player_Pilot_Controls pk = (Player_Pilot_Controls)target;

        Handles.color = Color.blue;

        Handles.DrawWireDisc(pk.transform.position, Vector3.forward, pk.radius);
    }
Exemplo n.º 2
0
    void Start()
    {
        problemsReport = gameObject.GetComponent <RecordProblems_Script>();
        p_s            = gameObject.GetComponent <Player_Ship_Controls>();
        p_p            = gameObject.GetComponentInChildren <Player_Pilot_Controls>();
        p_muzzle       = gameObject.GetComponent <Player_Muzzle>();
        p_switch       = gameObject.GetComponent <Player_Switch>();

        origin = p_p.gameObject.transform.localPosition;
    }