void OnEnable()
    {
        miniMapController = GameObject.Find("CanvasMiniMap").GetComponent <MiniMapController> ();
        mme                  = new MiniMapEntity();
        mme.icon             = icon;
        mme.rotation         = initialIconRotation;
        mme.size             = size;
        mme.upAxis           = upAxis;
        mme.rotateWithObject = rotateWithObject;
        mme.clampInBorder    = clampIconInBorder;
        mme.clampDist        = clampDistance;

        mmo = miniMapController.RegisterMapObject(this.gameObject, mme);
    }
예제 #2
0
    // References
    //public GameDataManager GameDataManager.instance;

    ///////////////////////End of Variables/////////////////////////



    ///////////////////////////Functions////////////////////////////

    // Use this for initialization
    void Start()
    {
        // Assign the reference to the game data manager
        //GameDataManager.instance = GameDataManager.instance;

        // Set the character icons and characters -- male selected
        if (GameDataManager.instance.SelectedGender() == GENDER.MALE)
        {
            MiniMapController.RegisterMapObject(gameObject, miniMapImageMale);
        }

        // Set the character icons and characters -- female selected
        else if (GameDataManager.instance.SelectedGender() == GENDER.FEMALE)
        {
            MiniMapController.RegisterMapObject(gameObject, miniMapImageFemale);
        }
    }
예제 #3
0
    // References
    //public GameDataManager GameDataManager.instance;

    ///////////////////////End of Variables/////////////////////////



    ///////////////////////////Functions////////////////////////////

    // Use this for initialization
    void Start()
    {
        // Assign the reference to the game data manager
        //GameDataManager.instance = GameDataManager.instance;

        // Set the character icons and characters -- male selected
        if (GameDataManager.instance.CivillianType() == CIVILLIANTYPE.MALE)
        {
            MiniMapController.RegisterMapObject(gameObject, miniMapImageMale);
        }

        // Set the character icons and characters -- female selected
        else if (GameDataManager.instance.CivillianType() == CIVILLIANTYPE.FEMALE)
        {
            MiniMapController.RegisterMapObject(gameObject, miniMapImageFemale);
        }

        // Set the character icons and characters -- female selected
        else if (GameDataManager.instance.CivillianType() == CIVILLIANTYPE.CAT)
        {
            MiniMapController.RegisterMapObject(gameObject, miniMapImageCat);
        }
    }
예제 #4
0
 void Start()
 {
     MiniMapController.RegisterMapObject(this.gameObject, image);
 }
예제 #5
0
    public Image image; //choose the image that we want to hook up the object

    // Use this for initialization
    void Start()
    {
        //At the start, register the object and it's image to the object list that will be rendered
        MiniMapController.RegisterMapObject(gameObject, image);
    }
예제 #6
0
    ///////////////////////End of Variables/////////////////////////



    ///////////////////////////Functions////////////////////////////

    // Use this for initialization
    void Start()
    {
        MiniMapController.RegisterMapObject(gameObject, miniMapImage);
    }