Esempio n. 1
0
    // Start is called before the first frame update
    void Start()
    {
        _ic = GetComponent <InputController>();
        _ac = GetComponentInChildren <AimChevron>();
        _selectionDisplayHandler = GetComponentInChildren <SelectionDisplayHandler>();
        _ac.Activate();

        _cam = Camera.main;
    }
Esempio n. 2
0
    /*
     * Lifecycle
     */

    protected void Awake()
    {
        pucks          = GetComponentsInChildren <PointAndShoot>();
        aimChevron     = GetComponentInChildren <AimChevron>();
        pmgm           = FindObjectOfType <PuckMasterGameManager>();
        powerIndicator = GetComponentInChildren <PowerIndicator>();

        foreach (var da in FindObjectsOfType <DeploymentArea>())
        {
            if (this.tag.Equals(da.tag))
            {
                deploymentArea = da;
            }
        }
    }