示例#1
0
    private void AddDamageReferenceKey()
    {
        Vector2    pos    = new Vector2(PD.IsLeftAlignedHUD()?-0.9f:0.9f, 0.0f);
        GameObject helper = GetGameObject(pos, "Damage Reference", Resources.Load <Sprite>(SpritePaths.GuideCircle + (PD.IsColorBlind()?SpritePaths.ColorblindSuffix:"")), false, "Reference");

        helper.transform.localScale = new Vector2(0.8f, 0.8f);
    }
示例#2
0
    private void AddDamageReferenceKey(int numPlayers)
    {
        Vector2    pos    = (numPlayers == 2)?new Vector2(0.0f, 0.35f):new Vector2(PD.IsLeftAlignedHUD()?-0.9f:0.9f, 0.7f);
        GameObject helper = GetGameObject(pos, "Damage Reference", Resources.Load <Sprite>(SpritePaths.GuideCircle + (PD.IsColorBlind()?SpritePaths.ColorblindSuffix:"")), false, "Reference");

        if (numPlayers == 2)
        {
            helper.transform.localScale = new Vector2(0.75f, 0.75f);
        }
    }
示例#3
0
 protected Sprite[] GetTileSheet()
 {
     return(Resources.LoadAll <Sprite>(SpritePaths.TileBlock + (PD.IsColorBlind()?SpritePaths.ColorblindSuffix:"")));
 }