Exemplo n.º 1
0
    // Receive Values for Entry Goal vs. Shot Goal

    // Use this for initialization
    void Start()
    {
        if (GameObject.Find("SystemManager"))
        {
            go_SystemManager = GameObject.Find("SystemManager");
            SystemManager    = go_SystemManager.GetComponent <C_SystemManager>();
        }

        if (GameObject.Find("BallSpawn"))
        {
            // go_BallSpawn = GameObject.Find("BallSpawn");
            // BallLogic = go_BallSpawn.GetComponent<C_BallLogic>();
        }

        if (transform.Find("Blocker"))
        {
            playerBlocker = transform.Find("Blocker").gameObject;

            // Set layer
            playerBlocker.layer = LayerMask.NameToLayer("BlockerRed");
            if (GoalColor == TeamColor.Blue)
            {
                playerBlocker.layer = LayerMask.NameToLayer("BlockerBlue");
            }
        }
    }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        go_SystemManager = GameObject.Find("SystemManager");
        SystemManager    = go_SystemManager.GetComponent <C_SystemManager>();

        PlayerPositions = new List <Vector3>();

        RelayExistenceToSystemManager();

        VisualState = false;
    }
Exemplo n.º 3
0
 private void Awake()
 {
     // Connections
     this_GameObject         = gameObject;
     this_RigidBody          = this_GameObject.GetComponent <Rigidbody>();
     this_CameraObject       = this_GameObject.transform.Find("Camera").gameObject;
     this_WallrunCollider[0] = this_GameObject.transform.Find("WallrunCollider_Top").gameObject;
     this_WallrunCollider[1] = this_GameObject.transform.Find("WallrunCollider_Bottom").gameObject;
     colliderBot             = this_WallrunCollider[0].GetComponent <C_WallrunColliderLogic>();
     colliderTop             = this_WallrunCollider[1].GetComponent <C_WallrunColliderLogic>();
     go_WeaponObject         = this_CameraObject.transform.Find("Weapons").gameObject;
     this_WeaponManager      = this_GameObject.GetComponent <C_WEAPONMANAGER>();
     go_SystemManager        = GameObject.Find("SystemManager");
     this_SystemManager      = go_SystemManager.GetComponent <C_SystemManager>();
     this_HealthManager      = this_GameObject.GetComponent <C_HealthManager>();
 }